Detect collision with inner cube

Hi! i was wondering if there is a way for a particle to detect if its inside of a cube(for example detecting the inner faces of the static mesh)

Thank you!