It connects to the TV through either the composite video or S-Video port, and to the PC through the Universal Serial Bus port common on most newer machines.
But even if machines are closely monitored by polling staff--a condition that's far from universal--a more realistic concern may be innocent bugs that miscount or ignore votes.