Assuming you have sql server 2012, you could use sys.dm_server_registry
See how to use it here:
https://msdn.microsoft.com/en-us/library/hh204561.aspx
So something like (I have no alias's to test!, but you get the idea):
SELECT registry_key, value_name, value_data
FROM sys.dm_server_registry
WHERE registry_key LIKE N'%ConnectTO%';