Completely depends on which codes, software you are using. That being said, most of the software would change the wild Pokemon to actually become Mewtwo which I guess would include its EV yield.
However hacking all Pokemon into mewtwo is a lot harder than straight up hacking in the EVs you need.