Mechanics from calorimetry: probing the elasticity of responsive hydrogels