PowerShell to get all servers with SQL Server or Oracle installed
This is an easy way to find the SQL Servers with the dbatools module. 

Install-Module dbatools    
Find-DbaInstance -DiscoveryType All


Reference: 
https://docs.dbatools.io/#Find-DbaInstance