You could try measuring the resistance between pairs of leads. If you find low resistances between 1-2, 3-4, 5-6, and 7-8, and high resistance elsewhere then it is likely a transformer.
Even if it differs from this a little it still may be a transformer, just with more complex windings.
Damn, originally typed about 24 hours ago, but I forgot to hit the post button.