Computing probabilistic moments of the solutions to the stochastic heat equation