I have several instances of Liferay Portal (bundled with Apache Tomcat 5.5.x/6.x) and I need to know how to check the version of those Liferay instances
Look at class com.liferay.portal.kernel.util.ReleaseInfo located in tomcat/common/lib/portal-kernel.jar. There is a bunch of static methods for this purpose. You will find the following property: static String version.