Any way to detect URI schema is available in windows using JavaScript in IE
This question appears to be a duplicate, however since there is a bounty I receive an error that it cannot be closed.
In any case, check out this thread and see if it works for you.