Although I love an array, you can do this without, using an animation that runs through those 8 configurations. Here's how:
Make sure your Xs and Os have collision boundaries less than half the size of one game square
Make a new sprite, WinStateChecker, and give it eight animation frames
Make each animation frame a line which corresponds to a win-state (as Simone says, 3 vertical, 3 horizontal and two diagonal)
Set the collision boundaries of the sprite to match the lines of the animation frames
After each turn, set the WinStateChecker's frame number to 0 then:
Sprite: Gamepiece - (your Xs and Os)
Instance Variable: Gamepiece.Player - (a number variable which indicates the owner of the piece)
Local Variable: CurrentPlayer - (a number variable telling which player played the last piece)
If Gamepiece overlapping WinStateChecker
CurrentPlayer = Gamepiece.Player
Gamepiece.PickedCount = 3
A positive check on those conditions should indicate a win-state.