You havent really provided many details as to how you want to set it up.
Q = m*c*(delta T)
Q = heat energy
m = mass
c = specific heat
delta t = change in temperature (= final - initial temp)
Remember, in a closed system, heat gained by one thing equals the heat lost by another.
Heat is a form of energy, meausred in Joules (sometimes calories, but the official SI unit is Joules),
Depending on the value you use for the specific heat, it is common to use grams or kilograms for the mass measurement.
Again, depending on the value of the specific heat, most commonly, you'll use temperature in terms of degrees C (or perhaps K, a change of 1 degree C = change of 1 K).