require('uxp').host
Includes useful information about the operating environment the plugin finds itself executing in.
require("uxp").host
name ⇒ string
Returns: string - name of the host application. For ex, returns "photoshop" for Photoshop  
version ⇒ string
Returns: string - version of host application. For ex, "20.0.0"  
uiLocale ⇒ string
Returns: string - 5 letter UI locale of host application. For ex, "en_US"