I think you can use org.sakaiproject.component.api.ServerConfigurationService#getServerNameAliases to get the beta.weblearn.ox.ac.uk.