The role of coupling in the energy transfer between two stochastic systems kept at different temperatures