here is a toughy....

i'm looking for a snippit of code that can do this for me...
i want my program to know when the mouse has been unpluged. that's it... and possibly when it has been pluged in again..

any thoughts...i can't figure it out...