This one might help.
https://learn.microsoft.com/en-us/powershell/module/servermanager/get-windowsfeature?view=winserver2012r2-ps&redirectedfrom=MSDN
https://social.technet.microsoft.com/Forums/office/en-US/6d673e3d-2046-4ddf-afd2-7bde7bfb3363/list-all-servers-with-rds-role-installed?forum=winserverpowershell
--please don't forget to Accept as answer if the reply is helpful--