Easy: create a temporary .HTM file and use the API call FindExecutable to find the program associated with it. This trick works for all associated file types.