Perturbative analysis of stochastic Hamiltonian problems under time discretizations