To view the list of ESXi hosts, run the esxcli vsan cluster get command. If you run the command on the witness host, the local node type appears as WITNESS.
For example:
[root@:~] esxcli vsan cluster get
Cluster Information
Enabled: true
Current Local Time: 2015-06-25T23:52:26Z
Local Node UUID: ########-####-####-####-########8d0e
Local Node Type: WITNESS
Local Node State: AGENT
Local Node Health State: HEALTHY
Sub-Cluster Master UUID: ########-####-####-####-########27e7
Sub-Cluster Backup UUID: ########-####-####-####-########9e57
Sub-Cluster UUID: ########-####-####-####-########e1bb
Sub-Cluster Membership Entry Revision: 2
Sub-Cluster Member Count: 3
Sub-Cluster Member UUIDs: ########-####-####-####-########27e7, ########-####-####-####-########8d0e, ########-####-####-####-########9e57
Sub-Cluster Membership UUID: ########-####-####-####-########27e7
You can collect the list of node information and preferred fault domain by querying CMMDS from a host.
For example: