Path variable for default browser in Windows
You can use:
reg QUERY HKEY_CLASSES_ROOT\htmlfile\shell\open\command /ve
And you will get something like:
(Default) REG_SZ "C:\Program Files (x86)\Internet Explorer\iexplore.exe"
Then you can easily parse it.