well the two cylinder looking things on either side look like ferrite beads as they don't seem to be attached to the centre.
So it could be an inductor?? I really don't know... If you can give the model number of the thing it came from we might be able to find a service manual.
I've seen them in many (mostly digital) circuits, like wireless access points, DSUs, and hard drives. The ends of this one are sitting on the positive rail and the middle contact is on the ground. They seem to be something like a feedthrough capacitors.
It's a LC power line filter, they come in different shapes. I've seen
pi configurations that look like a feedthrough capacitor with a nut
at each end. They also exist as standard three terminal components
that look like a (long) ceramic filter and this one is a T configuration
for surface mount.