Computation of free energy differences through nonequilibrium stochastic dynamics: The reaction coordinate case