Checking currently loaded game objects

I am currently writing a script that will pass/fail a device depending on whether or not certain game objects are present in the level. \

Basically I have a game object that is a testing device, it will be testing another device that is made up of multiple components. If there are flawed components than the tester will fail the game object.

Currently I am thinking maybe a target.find on certain game objects might be all I need to do.

Any advice on the best way to handle this would be appreciated.

The way I would do it would be to have each device have their own script that knows if the device itself has these and those components.

Then when the testing device asks, it only asks this script.