I would like to have one computer look at another computer and determine if there is a remote desktop session active.

Example: want computer B to look at computer A and determine if there is no remote desktop session or if some other computer is remoted in.

Is this possible either through WMI, port scanning, reading the remote registry, etc?

The nice thing is we use a generic administrator account for all computers, so security is not an issue.