This command will return the number of joints in the specified world. You can then use this number to examine those joints in greater detail with b2GetWorldJoint. The parameter should be the integer handle of the world to be checked.
Syntax
Return as Integer = b2GetWorldJointCount(ID as Integer)