hmm...
winnt-provider has a sessions kinda thing...
dunno if it works only for server but...

and ofcourse you can check for the loaded user hives.
something like:
for each $key in $HKEY_USERS_KEYS

as only the logged in user's key is loaded.
_________________________
!

download KiXnet