List of default software versions for given Ubuntu Release
Check the Ubuntu packages website, e.g. gcc for 18.04.
A variation of Ignacio's Answer; is you can search for all supported releases in one go with the Ubuntu Packages web site
https://packages.ubuntu.com/search?keywords=gcc
If you want more detail; you can click on the release of Ubuntu you're interested in and get to the link Ignacio provided..