How can I programmatically determine the path to Internet Explorer and Netscape?

What if there are more than one version of Netscape running?