Actually is not TServer disconnecting from statserver, is statserver disconnecting from TServer.
There is not an easy way to do this, and in fact, the best solution is fix the network, or install TServer and statserver in the same server. If that is not possible, you can use (assuming your are in 6.5) SCS to issue an alarm any time that the host where statserver resides disconnect. (I assume that due network problems the lca in statserver will disconnect also, reporting the server as down)
Then you can use a custom script to send a notification to agent desktops. Keep in mind this will make the network just worse, because you are increasing traffic.
A little bit easier solution is having the desktop application pinging statserver box before send the change_state request to TServer.
Be aware that any of this solutions just take care of the change_state requests initiated by the agent from the Softphone. If agent changes states using hardphone, or the PBX forces a change in agent state, still statserver will be out of sync.
Bottom line: Whatever you do IMHO, will be a waste of time and money until you fix your network. If high traffic is a concern you can use some sort of QoS to guarantee delivery of packet from and to statserver ON TIME.