As you mentioned, we will use Equipartition Theorem.
H2 has 5 degrees of freedom; 3 translations and 2 rotation
Therefore:
Internal energy = (5/2) nRT
You just substitute in the equation with the values of R and T and calculate the internal energy as follows:
Internal energy = (5/2) x 2 x 8.314 x 308 = 32.0089 x 10^3 J