If your router supports SNMP, then that may be an approach. The system MIB will return basic info on the make/model etc. and there's likely an enterprise MIB that would give you a lot more. How do you find the router initially ? Possibly by interrogating your local routing via SNMP.
SNMP4J is a commonly used SNMP library for Java.