Spyware is not a prank. Let's not come up with vague definitions of what is, and isn't acceptable.
Coworker has remote access to other coworkers machine and is abusing this trust to install spyware, setting a president for other "jokes".
Sorry man, I don't see anything funny here.