I presume you're talking about the standard 3 X 3 tic-tac-toe grid. The second player can always force a draw, provided his first move is right: it the first player takes a corner, take the center and if the first player takes the center, take a corner.
That might give you a starting point for your AI, or not