How to get the component version from the environment, e.g. PROD? (concerns applications and dictionaries)

I need to know version of published form on PROD and highest version of dict.

You can get this info with administrator credencials:
Forms

curl --location --request GET 'http://LAN_HOST:8082/repository/artifact/ARTIFACT_NAME/getPublished' --user USER

Dictionaries

curl --location --request GET 'http://LAN_HOST:8082/repository/info/ARTIFACT_NAME/getInfo' --user USER