I think you are talking about querying in LANDESK Management Suite, aren't you? And I think you are talking about the status of the windows activation? If so, there is no info by default in the inventory of a client. There exists some vbs scripts where you can query for the status but the query for the status differs from OS to OS. Here are some helpful links:
If you are firm in scripting, you can use these example scripts to write a registry key which then can be grabbed by the LANDESK inventory scanner.
A similar question was raised here, maybe you find useful Infos there too:
Hope it helps and hopefully I'm not completly on the wrong track with your question...