No-can-do on the API level. You could search the whole classpath for .class files.