The internal socket object has that information:
var socket = io.connect();
console.log(socket.socket.transport.name); //log the name of the transport being used.
Just log the “socket” object to see all the wonderful things you can get.
-Chad