Suppose we have such an $X$. Note that $\mathbb{R}^2$ has a countable base, so every subspace too. And a discrete second countable space has at most countably many points as all sets $\{x\}$ must be in any base for $X$.
Directly: for every $x \in X$ pick rationals $q_1,q_2,r_1, r_2$ such that $\{x\} = ((q_1,q_2) \times (r_1, r_2)) \cap X$, which can be done as $\{x\}$ is open in the subspace. Then this defines an injection of $X$ into the countable set $\mathbb{Q}^4$.
As David Hartley noted we want the discrete metric on $X$ in which case the answer is $3$, a equilateral triangle. We cannot have $4$ by geometric reasons. (We can have a regular tetrahedron in $\mathbb{R}^3$ of course).