Hi Shailendra,
Following query will help you find the health state status of the windows computers. Hope, it should resolve your query.
----------------------------------------
select distinct a.[ActiveDirectorySite]
, a.NetworkName
, c.[IsAvailable]
, (SELECT distinct ManagedTypeView.Name
FROM ManagedEntityGenericView
INNER JOIN ManagedTypeView ON ManagedEntityGenericView.MonitoringClassId = ManagedTypeView.Id
where ManagedTypeView.Name = 'microsoft.systemCenter.agent'
and ManagedEntityGenericView.DisplayName = a.NetworkName)as IsAgentinstalled
FROM [MT_Computer] a
inner JOIN [MT_Computer] b
ON a.ActiveDirectorySite = b.ActiveDirectorySite
AND a.NetbiosComputerName <> b.NetbiosComputerName
inner JOIN ManagedEntityGenericView c
ON a.[BaseManagedEntityId] = c.Id
WHERE
a.ActiveDirectorySite <> 'NULL'
and (a.[NetbiosComputerName] like '%%' or a.[NetbiosComputerName] like '%%')
and b.ActiveDirectorySite <> 'NULL' and (b.[NetbiosComputerName] like '%%'
or b.[NetbiosComputerName] like '%%')
------------------------------------------ Please mark the answer if you find it helpful.