THERMODYNAMIC DETECTION OF QUANTUM PHASE TRANSITIONS