How can I get which object something is colliding with?

You could replace floor mesh with a blueprint that has just mesh in it. Then check whether object you hit is of the “floor” class or not.