In the Auto_08.vbs sample in Navisworks Manage 2012 (or the AutoPublishScriptExample sample in Navisworks 2013), which can be located from the Navisworks install folder location (typically under Navisworks 2012\api\COM\examples location) - the VB Script file takes an input file and creates an expiring output file using the Publish API.
If a system has multiple versions of Navisworks installed and we want to determine which version of roamer.exe was used to do the publish, we can add the following simple lines of code and extract the required information:
ver=roamer.state.fileversion(arg_out)
MsgBox(ver)
All that is being done here is to check the file version of the output file and determine which flavor and version of NW was used to generate the NWD file. Please do remember to declare the variable ver using the Dim statement, at the beginning of the sample.