Two ways to handle this...
if you need this on a regular basis, consider extending SMS inventory with
the SMS_DEF.MOF file.
if this is more "ad hoc", you could write a utility (vbscript, sms
installer, etc) to query for the value, then write out a local file that sms
could inventory. Deploy the utility with sms to all clients...