This may not exactly be what you are looking for. Starting Java 5, there's a tool which Sun provides for listing the instrumented HotSpot Java Virtual Machines (JVMs) on the target system.
http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jps.html. But this becomes tricky if there are multiple java processes running, in which case you wont be able to identify which pid belongs to the JBoss instance.
Also, that documentation mentions:
NOTE: This utility is unsupported and may not be available in future versions of the JDK. It is not currently available on Windows 98 and Windows ME platforms.
So does not look like a good option to use.