Without any other information, it is not possible to compute the desired expectation. This is because $\operatorname{E}[X] = 5$ does not uniquely determine $\operatorname{E}[X^2]$. In fact, if $\operatorname{E}[X] = \mu$, we can write
$$\begin{align}
\operatorname{E}[(X+2)^2]
&= \operatorname{E}[(X - \mu + \mu + 2)^2] \\
&= \operatorname{E}[(X - \mu)^2 + 2(\mu + 2)(X - \mu) + (\mu + 2)^2] \\
&= \operatorname{E}[(X - \mu)^2] + 2(\mu + 2)\operatorname{E}[X - \mu] + (\mu+2)^2 \\
&= \operatorname{Var}[X] + 2(\mu + 2)(\mu - \mu) + (\mu + 2)^2 \\
&= \operatorname{Var}[X] + (\mu + 2)^2.
\end{align}$$
This shows that the desired expectation equals the variance plus $(\mu + 2)^2 = 49$. So for instance, if $X$ is normally distributed with mean $5$, we can pick any nonnegative variance we please. All that we can say is that $\operatorname{E}[(X+2)^2] \ge 49$.