You are talking about an electric guitar, right? Mostly this is done by temporarily connecting in parallel and playing a few notes, then reverse one of the coils to see what sounds better. It will be rather obvious which is in phase and which is wrong.