As far as I know only if you played them in an alt or match play game and won. Then it shows up on your activity.
If you just had a friendly knock around then I don't know of any way to find out who they were. Shame, it's happened to me a few times as well.