How to find temporal server version through SDK

Hi All,
In my POC I am trying to deployed temporal as native go application and created a cluster by deploying temporal server on multiple machines.
I am also experimenting with upgrade too. I am planning to replace native temporal application binary with newer build one as a part of upgrade.
Is there a way to check temporal version for updated node or version information of all individual nodes.

What is the output of

temporal operator cluster system

?

Hi @maxim ,
I was asking for using SDK (Java SD).
I am trying to write a workflow for upgrading temporal cluster. In this workflow, I am planning to write node upgrade us as activity. I want to check temporal version for idempotency and verification for upgrade success of each node.
Please also point me to SDK link too.

GetClusterInfo and GetSystemInfo are available through Java SDK.

Thanks @maxim