Do I need to install each and every cad version and check return value? Or there is any other method.
You can. Meanwhile @MartinHanak suggestion to call ProEngineerDisplaydatecodeGet () will be more efficient. Here is an excerpt of the prototype:
The description drops some important details:
If it is necessary to show an identifier for the Creo Parametric version to the user from an application, this value should be used, rather than the value passed in to the application's user_initialize().