the output looks like this
ComputerName :
O365Channel :
BaseURL :
InstallID :
O365Version : 16.0.11328.20368
Channel : Semi-Annual Enterprise Channel
...i deleted values that appear to be null. you could use either that created as a function or the oneliner to determine the version if you think it may work for you.
(Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration).VersionToReport
cheers ;-)