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