I' ve just found that the tds version is included in the tdsSession.loginAckStruct.TDSVersion. I will revise the pull request.