no, it will not know that somebody has bumped you.
Ky
But it will detect distance change between ship and asteroid and if you set laser optimal range = 5000, it will react in most cases with approaching to asteroid. This is especially usefull for Ice mining, where you dont need optimal range of lasers to mine more then one asteroid.