Access to rigid body collisions

I’m trying to figure out if I can access a list of rigid body collisions from a script. Is this possible? Preferably “this command returns a list of all objects that have collided with this object during this frame” or “this command returns a list of object pairs that collided this frame”. Thanks.