Interface localization in the 2D Ising model with a driven line