Let the first term be \( a \) and the common ratio be \( r \). We are given that the second term is 4, which gives:
\[
a r = 4
\]
The product of the first three terms is:
\[
a \cdot a r \cdot a r^2 = a^3 r^3 = 64
\]
Thus, the product of the first three terms is 64.