If you have a known good ground, an extension cord, an incandescent test light, clip leads and an ohmmeter you can figure out each conductor regardless of their colors, but it is methodical and tedious.
With three way switches you have to watch out for Phantom Voltages.
If you're up to it, so am I.