This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
This kind of information can be found in various MBeans. For example, the jboss.system:type=ServerInfo MBeans has a hostName property, and the jboss:service=Naming MBean has a port property. You can use the jmx-console or twiddle to easily scan the mbeans to see which ones contain the information you want, and then have your code query the appropriate mbean properties.