The amount of thermal energy in the Earth's core and mantle is determined primarily by the temperature. The three-dimensional temperature field inside the earth is imprecisely known. One dimensional "Onion skin" models of the earth's interior are based upon empirical evidence from seismology, geodesy, and mineral physics, but there are almost certainly lateral variations in temperature which are important to understand.
The article mentioned in the comments can provide you with estimated temperatures at important discontinuities inside the earth. Connect these with constant gradients, or find an alternative model temperature profile.
You should be able to find some specific heat capacity measurements for periodite (mantle), perovskite, and liquid iron. To an order of magnitude these should be like $10^2$ - $10^3$ $\text{J} \text{ kg}^{-1} \text{K}$.
You'll also need the density profile, and can get that from a one dimensional model of the density of the earth. You might try Preliminary Reference Earth Model (PREM) or The Reference Earth Model Website. The latter reference models include three dimensional models.