I'm pretty sure there is no way to detect it in scripting. If your idea was true, the middle mouse button would operate as the left mouse in most scripts (as they probably do not check for right mouse button when checking for left mouse button), but this is not the case.

As nearly as I can tell, it's simply not in mIRC scripting.

Who knows, maybe khaled doesnt have a wheel :P