Characterizing the velocity field in hydrodynamical simulations of low-mass star formation using spectral line profiles