Eternal Blues is a free utility that lets you scan your network for vulnerabilities open to any of the EternalBlue-based attacks.
This tool is a great preventive measure against ransomware. All you need to do is download and simply run a scan on your network. The tool will iterate through all the IPs in the IP range and look for any vulnerable computers. You can define a custom IP range or go on with the automatically detected one.