lslpp -Lqc cluster.es.server.rte | cut -d: -f3

If you don’t trust the above method to determine the PowerHA version you could also ask the cluster manager

lssrc -ls clstrmgrES | egrep ‘^local node vrmf|^cluster fix level’