In General, the only thing I found free on the subject — JackMeter (this is a command line program for linux audio JACK, JACK himself in difficulty settings is comparable to sendmail.cf).
For Windows, there are a whole lot of paid programs such as "Audio Spy", "Spy Voice Recorder", etc.
\r
Unfortunately, the only parameter to which you can attach the action — sound volume.