How to tell if there is a spy on my head?

Try crouching or jumping. If you can't uncrouch or jump, well, there's a spy sitting on your head.

Note that if you crouch and you weren't crouching before, the spy will probably notice the change and run for it, so jumping might be best.