Just some thoughts, too long for a comment.
Let's take the example of $\mathbb{H}^n$ for some finite $n$. Take the product
$$\langle v, w\rangle = \sum_{\ell=1}^n \bar v_k w_k$$
It is clearly biadditive, and moreover
$$\langle v a, w b\rangle = \bar a \langle v, w\rangle b$$
So you should look at $\mathbb{H}^n$ as a right vector space over $\mathbb{H}$.
Question: is every linear map $\mathbb{H}^n\to \mathbb{H}$ of the form $w \mapsto \langle v, w \rangle$ ? ( This is an algebra question, no analysis). You can check that the answer is yes.
Now consider something like $\ell^2(\mathbb{N})$ but with quaternionic entries. Define what the space is, the inner product, the topology, etc. Can you formulate the statement? Does the result hold?
Can you define a Hilbert space over $\mathbb{H}$?
Try to prove the Riesz theorem in the case of the field $\mathbb{R}$ or $\mathbb{C}$. Do you need commutativity of the coefficients?
An observation: topological vector spaces over topological fields or topological division rings are probably well studied, but perhaps it's interesting to see what results hold when $\mathbb{K}$ is not $\mathbb{R}$ or $\mathbb{C}$. Good luck!
$\bf{Added:}$ Let $\mathcal{H}$ be a right vector space over $\mathbb{H}$. Let $\langle \cdot , \cdot \rangle \colon \mathcal{H}\times \mathcal{H} \to \mathbb{H}$, $\langle w, v \rangle = \overline{\langle v, w \rangle}$, $\langle v, w_1+w_2 \rangle=\langle v, w_1 \rangle+\langle v, w_2 \rangle$,
$\langle v, w a \rangle =\langle v, w \rangle a$
and
$\langle v, v \rangle \ge 0$, with equality if and
Can you get any of the usual statements for (real or complex) spaces right away? Yes. For consider $\mathcal{H}$ as a vector space over $\mathbb{R}$ with the inner product
$$\langle v, w\rangle_1 \colon = \operatorname{Re}( \langle v, w\rangle)$$
Now let's prove C-B-S inequality. Take $a$ a quaternion of unit norm such that $\langle v,w a\rangle \in \mathbb{R}$, etc.
Now the fact that we have a norm follows from the real case.
Let's take $\mathcal{K}$ an $\mathbb{H}$ subspace. Check that the orthogonal of $\mathcal{K}$ for the quaternionic inner product coincides with the orthogonal wr to the real product. This allows to prove all of the desired properties by passing to the real.
One could ask why bother with quaternionic spaces if they "are" like real ones. Well, they do have extra structure that we could use.