On measuring planetary winds using high-resolution spectroscopy in visible wavelengths