How Do I Check If Something is Nested

This is for a class. I drug two objects on top of each other to establish a parent/child relationship according to the textbook. But if there a way I can confirm they are nested? Sorry, this is my second lesson beyond making a cube.