If you have bones for eyes you can rotate them Set Bone Rotation by Name | Unreal Engine Documentation
But eyes must be attached to these bones otherwise it doesn’t work.
To find the bone location/rotation of a bone using that Get Bone Transform by Name | Unreal Engine Documentation
You can do a right-click on the return value and split it into location, rotation, scale.
Don’t forget that you need to rotate each eye separatelly
Some additional approaches how to handle it. You can attach eyes to a slot or bone and then control it as you want.
On my project, I’m not using skeletal meshes, but I’m using a mesh with sockets and I can separately rotate turrets and guns on it.
Before I tried using attach a component to a component node, but it has some limitations, much more favorable to use spawn actor and then attach an actor to component nodes. It also good because I can put actor specific logic to the actor that I’m attaching to my player’s pawn