I think you'll have to inspect it manually:
String classpath = System.getProperty("java.class.path");
String[] locations = classpath.split(System.getProperty("path.separator"));
// inspect all jar's and class files in these locations, which is a pain in the b%tt
Or use some third party library that does this (I don't know of any).