Short of sitting across the board with them and checking them for communication devices, you can't.
But just because someone makes good moves does not mean they are using a computer. Even mediocre players will make extraordinarily good moves -- sometimes they don't even know how good their moves are!
How can you avoid playing someone using a computer to make their moves ?