The D+/D- lines are the middle two pins of a USB connector. Just select one on one side of the cable, and test continuity to both of the middle pins on the other side. You will see no continuity or a high/"infinite" resistance on your meter if the cable is missing data wires and is a "charge only cable".