I hadn't thought about that being a problem because I leave my headphones plugged in so I can dictate....so there is nothing to hear from my computer as far as the patient knows. Can your IM program "light up" or flash when a new message comes in? Then you could mute the computer and just have a visual signal.
Of course, you should be paying 100% of your attention.......well, nevermind! ;-)