In VBScript there is a function called CreateObject, which can be run on a client through a webpage. I've used it before like this:
Set icaObj = CreateObject("Citrix.ICAClient")
CitrixVersion = icaObj.ClientVersion
To find out which version of the application was installed on the client machine.
Is there something comparable in JavaScript?