Start, Run and enter GPEDIT.MSC
For "per machine" restriction, go to Computer Configuration, Administrative Templates, Windows Components, Windows Messenger.
For "per user" restriction, go to User Configuration, Administrative Templates, Windows Components, Windows Messenger.