Get collision without attaching a script to every game object

I have a bunch of objects in my scene. The player can choose which object to move at any given time. I need to detect if the moving object is colliding with any of the other objects - this would be fairly simple with OnCollisionEnter() script attached to the moving object, but, since the player can move any of the objects, I would have to attach the same script to all of them.
I’m looking for a work around. To put it more simply, say there are objects A and B, which collide, and there’s an object C with a script on it, which returns true if said two objects collided. A and B have no scripts attached.

The data is only really accessible through the OnCollision routine. This is why a script is needed; as when the function has finished executing the information is no longer accessible as its scope was limited to the function itself.

You will need to create a variable of type Collision outside of the OnCollision function and use this field to hand off he information.

Alternatively, pass it straight to a player or another object, nonetheless you will need to script it to access the data.