you use the equation q=mcdeltaT delta t=the chang in temp m=the mass of water and c=the specific heat capacity which for water is usually 4.18kJ
q is the amount of energy which you are trying to figure out
im sorry that i dont know the overall units for the equation but hope this helps you
:) :)