I'm sure $com could do this, although I do not know the details on what objects to use...

These links might help...

Basic information about COM Objects
Using WMI to do something like this