You can use getpeerinfo to get a list of connected nodes. Assuming you're in a small network and there's no firewall preventing nodes from connecting to each other, by default every active node will be connected to every other, so you can just see who's missing.