If possible, I would prefer the solution proposed by Arun regarding the run mode, as we know that AEMasCS does not allow custom run mode values. Another option could be to retrieve the OSGI bundle version of a specific bundle, which we can be certain has different values across various AEM instance...