If an overthrown ball hits the fence and remains on the field, the ball remains live and in play.
If an overthrown ball hits any dugout equipment or goes out of play, the ball is dead and the runners take their appropriate bases: two bases from where they were at the time of the thrown ball’s release.
If an overthrown ball hits a coach on the offensive team, the ball is dead and no extra bases are awarded.