It sounds to me like you're getting EVs and IVs confused. EVs are gained through battle like EXP while IVs are unique values that are set for each Pokémon and cannot be changed (outside of hyper training). The two both affect the Pokémon's stats, but are unrelated to each other. This site already has guides for both EVs and IVs; you can learn the basics of each of them from there. Additionally, here's where you can find these values in-game (for USUM):
The NPC you're talking about is the IV judge. In SM/USUM, he can be found in the Battle Tree next to the PC. Unlike in previous games, he won't judge a single Pokémon, but will instead add a feature to the PC that will let you see a visualization of your Pokémon's IVs (although you need to hatch at least 21 eggs first). You won't get exact numbers, but you'll be able to get a ballpark estimate.
To get an estimate for your Pokémon's EVs, just go to your Pokémon's summary screen and press Y to get a visualization of your Pokémon's EVs. This screen will show two graphs: the innermost one (should be dark blue) are the base stats of that Pokémon species. The outer one is the Pokémon's EVs, and it will either be light blue, if the Pokémon's EVs are maxed (510 across all stats) or orange if they are not. When an individual stat is maxed (252 EVs in one stat), the name of that stat will sparkle.