If you really need to do this. There is a hacky, ugly and quite painless way:
Put this into your HTML. It will set $.browser.msie for you.
Detect IE except IE10:
<!--[if IE]>
    <script type="text/javascript">
        $(function(){
            if(!$.browser && !$.browser.msie) { $.browser = {}; } 
            else { return; }
            $.browser.msie = true;
        });
    </script>
<![endif]-->
Detect all IE including IE10
<!--[if IE]>
    <script type="text/javascript">
        $(function(){
            $('body').addClass('msie');
        });
    </script>
<![endif]-->
<script type="text/javascript">
    $(function(){
        var $body = $('body');
        // use this only if you need to detect IE10
        if (Function('/*@cc_on return document.documentMode===10@*/')()){
            $body.addClass('msie');
        }
        if($body.hasClass('msie')) {
            if(!$.browser && !$.browser.msie) { $.browser = {}; } 
            else { return; }
            $.browser.msie = true;
        }
    });
</script>