Detect which instance of an actor is touching another instance of that actor

I need to figure out how to detect which instance is touch the other instance... I wish this could be a neat feature. Also, I need to know if it is height or width side is touching... I want to have an auto resizing game depending on where a block is placed.