is the european union federation, a confederation or something else?

Read the section on the EU here.

http://en.wikipedia.org/wiki/Confederation