This is a way I used to find the x, y & z positions.
FString ObjectPos = GetOwner()->GetTargetLocation().ToString();
Be careful. If you look at the comments that describe this function, you will see that it is not intended to return the location of the actor. Instead, it is intended to return the location that should be targeted by enemies that wish to fire weapons at this actor. By default, the return value is the location of the actor itself, but since it is a virtual function, another kind of actor can override that behavior. This could be used to identify a “weak spot” on a character, for example.