IRootNodeInfoResponse contains data about the version of Elasticsearch server, it can be fetched using ElasticClient instance:
var rootNodeInfo = await elasticClient.RootNodeInfoAsync();
Console.WriteLine(rootNodeInfo.Version.Number);
Prints, for example:
6.2.2