No, It is Immpossible.
Many plugins can make sound, and they all do it their own way. There is no trick here.
Perhaps on Vista / 7, where in practice application usage is tracked, and when using a browser such as Chrome that does a separate process for each page, you might be more fortunate. This will include figuring out which processes are playing sound, and then figuring out which page each process is loaded on. Via javascript though? In no case.
source share