A similar question was asked before in https://math.stackexchange.com/questions/2727090/even-perfect-number-that-is-also-a-sum-of-two-cubes, but no conclusions were drawn.
On the Wikipedia article of perfect numbers there are two related results concerning whether an even perfect number can be a sum of two cubes. Gallardo's result in 2010 (which can be found here) claims that 28 is the only perfect number that can be a sum of two cubes. This part is copied from the question on MSE, which is summarized from the paper:
Let $N$ be an even perfect number. Assume that $N=x^3+a^3=(x+a)(x^2-xa+a^2)$. Note that $x$ and $a$ have the same parity. Consider the case $x+a<x^2-xa+a^2$. By the Euclid–Euler theorem, it follows that $N=2^{p-1}(2^p-1)$, where $2^p-1$ is a Mersenne prime. Thus, $x+a=2^{p-1}$ and $x^2-xa+a^2=2^p-1$.
However, nowhere in the proof was it proven that both $x,a$ are odd, or that $x+a$ and $x^2-xa+a^2$ are coprime. If $x,a$ are even, the second equation cannot hold. So, is this result true? If the subsequent analysis is correct, this still shows that a perfect number cannot be expressed as two odd cubes. Or are there similar results concerning whether a perfect number can be expressed as a sum of two perfect powers?
Remark: the title of this paper is On a remark of Makowski about perfect numbers. The remark of Makowski, also referenced in the Wikipedia article, concerns the case $a=1$, so $x$ is also odd, and there is no issue of non-comprimality. For those interested, Makowski deduced that $x+1=2^{p-1}$ and $x^2-x+1 = 2^p-1$ from the fact that the latter factor must be odd. From these equations, $x=3$ follows immediately, hence $28$ is the only perfect number that is one more than a cube. @Mindlack's answer here generalizes the result to $N = x^m + 1$. Both proofs are elementary.