To read the application version that is deployed to a certain Elastic Beanstalk environment, you can simply execute:

aws elasticbeanstalk describe-environments --environment-names ENVIRONMENT-NAME --query "Environments[0].VersionLabel" --output text

I use this to determine if a new version has made it to a given stack. I poll for that, then trigger my acceptance test suite.