If you performed the reaction in water, the mass would be the mass of water and c would be the heat capacity of water. Remember that during the reaction, your system is exchanging heat with its surroundings (the water), so measuring the change in temperature of the water tell you about the amount of heat released or absorbed by the reactants.