Shape overlap "coverage"

How can I test if one simple shape, usually a box, is completely covered by / inside of one or more other simple shapes, which are also usually boxes and adjacent to each other to form a bigger volume? I needed this as a kind of placement validation check where the bounds of the object to be placed must be inside the bounds of the defined space.