If you are using a camera component, run a line trace from the camera component.
https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseRaycasts/Blueprints/
When you break the hit result, you can find out what actor was hit, and set that to a variable