Cable Position Sensing for a winch motor
My suggestion is to use a speed reductor, mounted on a shaft of the winch, if possible. The reduction ratio then determines the total length of the cable. 
This method is used in industry with cranes, lifting table. You then have to put the limit switches on the stroke end.