Usually latest release label gets updated on EMR’s Whats New page.
So a way to getting the last EMR release label would be:
curl -s https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-whatsnew.html |grep "(Latest)"|head -n1|awk '{ print $3 }'
Have fun!