You might need to loop all audio players using a com object to check whether your player is plugged or not. Dunno which WMI class to check for... I'll have a look at it soon.