Non-equilibrium critical dynamics of the two-dimensional XY model with Hamiltonian equations of motion