Electric Arcs Effect

Is there any way to tell when the Lightning bolt hits the target to fire a function or something?