The Eon Scanner sits at the bottom of the Abandoned Ship, the sunken wreck you reach by using Dive near Route 108.
Bring a Pokémon that knows Dive, surf out to the dark patch of water, and submerge. Inside the wreck you will need to explore several decks, and locked doors block your progress until you find the matching keys scattered around the ship.
The scanner is the item tied to the ship's side quest, and it is one of the pieces of the puzzle that leads you toward the sea routes and the legendary Eon duo. Work through each deck methodically, opening every door you can, and you will collect it without much trouble.