If you're using vizconnect to connect to the Vive, get a handle to the head tracker using the name in the vizconnect file. Then get its position. See the
trackers page in the vizconnect section for more information.
Vizard has built in support for sending data over the network via UDP. There's sample code that shows how to send and receive raw byte data in Vizard in the
networking page. Or you could use Python sockets for sending data.