While the original question was for checking whether a specific VMware Cloud on AWS (VMC-A) cluster has the vSAN TRIIM/UNMAP feature enabled, the solutions below is applicable to any recent vSAN 7.x or 8.x deployment. There are two ways you check, either using the vSphere UI by selecting the cluster and navigating to Configure->vSAN->Services and expanding the Advanced Options tile or simply leveraging PowerCLI and the vSAN API to retrieve the exact same information.
vSphere UI
vSAN API using PowerCLI
$clusterName = "Cluster-1" $vsanConfigSystem = Get-VsanView -Id VsanVcClusterConfigSystem-vsan-cluster-config-system $clusterMoRef = (Get-Cluster $clusterName).ExtensionData.MoRef $vsanConfigSystem.VsanClusterGetConfig($clusterMoRef).unmapConfig