The only way I know of is to use a program like Q2admin which allows chat banning.
If you ban the word scanner then players are unable to use the cmd scanner command. You can also display a message like.... Scanner Disabled every time they try to turn it on.