The two step Fama-Macbeth regression works as follows:
First, run a cross sectional regression in each period. I believe that you want to estimate risk premia for each of the Fama and French factors. Therefore you run:
$$r_{i,t} = \lambda_{t,MKT} \hat{\beta}_{i,MKT}+\lambda_{t,HML} \hat{\beta}_{i,HML}+\lambda_{t,SMB} \hat{\beta}_{i,SMB}+ \alpha_{i,t} \quad \forall t \in [t_0,t_T] $$
The independent variables are the estimates from your times series regressions. They are the same for each cross-sectional regression. You run thus cross-sectional regression for each of your 300 months in the sample. This gives you 300 estimates for each risk premium, one for each period. Note that some people prefer to run the cross-sectional regressions also with intercept.
Second, to find the risk premium for each risk factor you average each premium over time.
$$\hat{\lambda_{RP}} =\frac{1}{T} \sum_{t = 0}^T \lambda_{t,RP}
$$
To obtain standard errors:
$$\hat{\sigma}^2(\hat{\lambda}_{RP}) =\frac{1}{T^2} \sum_{t = 0}^T (\lambda_{t,RP}-\hat{\lambda}_{RP})^2
$$
where RP is either MKT, HML or SMB. With the standard error and the estimate you can perform a t-test.
A few comments on the procedure:
1) Please note that the Fama-Machbeth regression only corrects for cross sectional correlation. Petersen (2009) recommends to estimate standard errors with the Newey-West procedure to correct for autocorrelation. John Cochrane recommends to use GMM in his book Asset Pricing.
2) The time series regressions you mention in your post as a first step are actually not part of the Fama-Macbeth regression and the only purpose of those regressions is to find the betas. However, they are often called first step in many academic papers.
3) There is an excellent summary by Jason Hsu.