Witto, I found this link:

http://www.microsoft.com/technet/scriptcenter/resources/qanda/may06/hey0512.mspx

Can you just do a read and get the value?