People, the OP is asking how to disambiguate between D- and D+. If you've got two wires in your hand, D+ and D-, and you don't know which one's which, how do you figure it out?
I think the easiest way is to just try plugging a device in. I'm pretty sure it's safe to do because it's a differential line, so the 1's and 0's will be backwards, no risk of bad things happening (like if you were to get the power and ground backwards).