IE11 in compatibility mode does indeed keep the MSIE value... here is mine:
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Both will emit "MSIE 7.0" in the user-agent, but IE8 will have Trident/4 while IE7 lacks any such token. MSIE 11 does away with "MSIE" in the user-agent altogether.
There's a X-UA-Compatible header (and meta variable) you can emit to ask for no compat checks.