From the OP, the coefficient of $x^{12}$ in $(x^3 + x^4 + x^5 + x^6 + \cdots)^3$ is equal to that of $x^3$ in $(1+x+x^2+x^3)^3$. This is equivalent to asking the number of ways to pick one $x^i$ below in each row so that the product of the $x^i$ picked in each row is of the form $kx^3$ for some number $k$.
$$ \require{enclose} \bbox[border:2px solid red]
{
\begin{array}{c|c|c|c}
x^0 & x^1 & x^2 & x^3 \\ \hline
x^0 & x^1 & x^2 & x^3 \\ \hline
x^0 & x^1 & x^2 & x^3
\end{array}
}
$$
If we focus on indices, we will find out that this is equivalent to asking the number of ways of choosing one number from each row so that the sum of three chosen numbers adds up to three.
$$ \bbox[border:2px solid red]
{
\begin{array}{c|c|c|c}
0 & 1 & 2 & 3 \\ \hline
0 & 1 & 2 & 3 \\ \hline
0 & 1 & 2 & 3
\end{array}
}
$$
Therefore, the problem is asking for $$\#\{x,y,z\in\Bbb Z_0^+ \mid x \color{blue}{\fbox+} y \color{red}{\fbox+} z = 3\}.$$
Hence, the answer is very simple: ${5 \choose 2} = 10$. First, imagine that we have a $5\times 1$ grid.
\begin{array}{|l|l|l|l|l|}
\hline \\
&&&& \\ \hline
\end{array}
Then you choose two grids to put $\color{blue}{\fbox+}$ and $\color{red}{\fbox+}$. These two plus signs symbolises $x\color{blue}{\fbox+}y\color{red}{\fbox+}z=3$. Therefore, $\color{blue}{\fbox+}$ should be at the left of $\color{red}{\fbox+}$. The picture below serves as an example.
\begin{array}{|l|l|l|l|l|}
\hline \\
&\color{blue}{\fbox+}&\color{red}{\fbox+}&& \\ \hline \tag{*} \label{*}
\end{array}
Fill the remaining grids with three $\enclose{circle}{1}$ to see what happens.
\begin{array}{|l|l|l|l|l|}
\hline \\
\enclose{circle}{1}&\color{blue}{\fbox+}&\color{red}{\fbox+}&\enclose{circle}{1}&\enclose{circle}{1} \\ \hline
\end{array}
Therefore, this example shows one possibility $x=1,y=0,z=2$. You may make up others by choosing other combinations in \eqref{*}.