i've seen an approach like this:
install all the speakers... (since the wires go to their specific locations e.g. front left, rear right, etc.- im guessing what you dont know which is which are the connections where they all meet for the receiver/amp) get a D size battery ... connect the + and - of the wire to the + and - of the battery ... whichever speaker makes a sound - thats the wire!
waiver:
i dont know if this can damage the speakers.