From a browser, if I have a single ADFS (STS), when I attempt to access a SharePoint site, I can get the ADFS URL and realm from the redirect in HTTP reponse for authentication. If I have more than 1 STS servers configured on a SharePoint site, I will be prompted (Home Realm Discovery) with available realms and ADFS servers to select where to authenticate.
But is there a way to get these programmatically from SharePoint (not thru HTTP redirect or web page prompting), e.g. SOAP API or REST API?