How to detect when an gas alarm piezo (self drive - 3 wires) buzzer is active?

Hi,
I would try a diode and a capacitor so when the alarm turn on it will charge the cap. You can read then the voltage across the cap. The diode will isolate the circuit from the piezo circuit. The cap will change the frequency pulses to an analog signal.