How to detect Brush Line Collision?

Hi, I want to create a effect with brush to connect 4 line but how to detect Brush Lines collision?