WoW:API UnitLevel
Retrieves the unit's level. unit being target,party,pet etc.
EX:
/script SendChatMessage("Level "..UnitLevel("target"));
will say, if you're targeting a lvl50: Level 50
(sorry for the bad format and all, but wanted to get something up)