There is A LOT of things to show if it is hacked or not. Like DataMasterSarus said: (continuing list)
1. If the name looks unusual (not foreign language, like there's a huge space.)
2.If the moves that you got it with are moves that cannot possibly be learned by that type.
3. If your pokemon is at an impossible evolution (i.e. Cascoon at Lvl. 9)
4. If the Ability does not relate to the pokemon at all.
5. Illegal EVs/IVs (-Luther Olather)
Helpful Link6. More than usual PP (You
can use the PP Up though, but still check.)
7. IF it is an EVed pokemon, check for Effort Ribbon(proves it's 100v;ed) & championship ribbon (I mean really, how else would u level it up to w.e. lv it is?!) - Also, most ribbons require something, like if you have master ribbon for contest, does it have any poffins fed? AND if it has that Classic Ribbon and you got it from GTS... Well you shouldn't have because that ribbons prohibits this but idk if it works for hacks or not.
8. Does it have pokerus? Some eved don't, but that would take a longer time to ev, and u can easily get it from a friend so what's the excuse?
9. OT if its a legend/event is very important the wishmaker is often confused because there isn't enough letters for it. Check
Serebii or
this pg of GameFAQ I found for events. (Use Ctrl+F to navigate faster in second link.)
10. Check WHERE it was found, some like starters, can only be breed/catch at what ever place you start from.
11. Check what level it was met at. Is that possible? (Check
marriland.)
12. The pokeball they were captured in, if it was breed then it has to be a Pokeball/etc
13. The ID # is its event.
14. Correct stats? look up your pokemon if its stats say it was ev in three stats or more then it's probably hacked.
15. Check the contest's status pg thing of your pokemon, where it says the sheen/poffins, if it's all max well... You know.
16. If the person said its a certain Hidden Power and its not, I wouldn't trust the other things the person said but it makes me wonder if it's hacked or not due to the unwanted Hidden Power... Hm...
I'm sure there are other ways to check, but these are some quick to see if so or not.