$
\def\nn{\mathbb{N}}
\def\eq{\leftrightarrow}
$Basically, PA is able to manipulate arbitrary finite sequences of natural numbers encoded as single natural numbers. This can be done using Godel numbering. Because of that, we can write down an explicit algorithm that given as input any sentence $P$ over ZF about natural numbers and finite sets of natural numbers will produce as output an equivalent sentence $φ$ over PA, in the specific sense that $\text{ZF} \vdash P \eq ( \nn \vDash φ )$. One can consider this algorithm as a uniform translation. That is the precise meaning when people say that PA can state some apparently higher-order statements such as the finite Ramsey theorem (FRT) and the strengthened finite Ramsey theorem (SFRT).
$
\def\wi{\subseteq}
\def\lfrac#1#2{{\large\frac{#1}{#2}}}
\def\floor#1{\left\lfloor#1\right\rfloor}
\def\ceil#1{\left\lceil#1\right\rceil}
$
We can give a sharper statement for FRT; it is equivalent to a $Π_3$-sentence over PA. We need $\forall$ for $e,k,r$, and then $\exists$ for $m$, and then $\forall$ for $M$ (note that we can only translate the version involving a finite $M$!), and the rest can be done with bounded quantifiers. Also, if you had stated FRT where $M$ is simply $\{1..m\}$ (which is clearly equivalent to the original), then it translates to a $Π_2$-sentence. Likewise for SFRT, where instead of $\#(H) = k$ you need $\#(H) \ge \max(k,\min(H))$.
Note that it is not important to use ZF, since Godel numbering works in very weak meta-systems, and the uniformness of the translation is what makes it interesting. In the particular case of SFRT, in meta-systems like ZF the question becomes trivial because ZF proves SFRT and so proves that the trivial true sentence "$\top$" is equivalent to SFRT. Weaker systems than ZF may be strong enough to prove the uniform translation but not strong enough to prove SFRT. For example (as the linked Wikipedia article states), PA cannot prove SFRT, and so ACA0 (which is conservative over PA) cannot, even though ACA0 can prove the uniform translation.
Also, PA can actually prove the equivalent sentence to FRT! It is stated without proof in this book, and I could not find the proof anywhere online, so I shall give my own proof below. The basic idea is that we prove the 2-colour case first and then generalize, and for the 2-colour case we prove the general case where the desired size of the homogenous set depends on the colour. For simplicity let "$n$-set" denote a set of size $n$, and "$[S]^n$" denote the collection of all subsets of $S$ of size $n$.
Let $R(c,n,k)$ assert the Ramsey theorem for $c$-colourings of $n$-sets and desired size $k$, namely that there is some $m \in \nn$ such that, for every $c$-colouring $f$ of $[\{1..m\}]^n$, there is some set $S \wi \{1..m\}$ such that $\#(S) = k$ and all $n$-sets in $[S]^n$ have the same colour under $f$. Let $R_2(n,j,k)$ assert the Ramsey theorem for $2$-colourings of $n$-sets and desired sizes $j,k$ for the respective colours, namely that there is some $m \in \nn$ such that, for every black-white colouring $f$ of $[\{1..m\}]^n$, there is some set $S \wi \{1..m\}$ such that, either $\#(S) = j$ and all $n$-sets in $[S]^n$ are black under $f$, or $\#(S) = k$ and all $n$-sets in $[S]^n$ are white under $f$.
$R(1,n,k)$ is trivial for every $n,k \in \nn$. We will later prove that $R(2,n,k)$ holds for every $n,k \in \nn$. Take any $c \in \nn_{>1}$. Let $c' = \ceil{\lfrac{c}{2}}$. Then $c' < c$. Let $p$ witness $R(2,n,k)$ and $q$ witness $R(c',n,p)$ by induction. Take any $c$-colouring $f$ of $\{1..q\}^n$. Let $f'$ be $f$ but with the original colours paired and made the same in each pair, with at most one colour unpaired. Then $f'$ is a $c'$-colouring of $\{1..q\}^n$. Thus by choice of $q$ let $S \wi \{1..q\}$ such that $\#(S) = p$ and all $n$-sets in $[S]^n$ have the same colour under $f'$. Then all the $n$-sets in $[S]^n$ have only two colours under $f$. Thus by choice of $p$ (and via a bijection from $S$ to $\{1..p\}$) let $T \wi S$ such that all $n$-sets in $[T]^n$ have the same colour under $f$.
We shall now prove $R_2(n,k,k)$ for every $n,k \in \nn$. Take any $j,k \in \nn$. $R_2(n,j,k)$ is trivial if $j = 0$ or $k = 0$, and hence we can assume that $j,k > 0$. Let $p,q$ witness $R_2(n,j-1,k)$ and $R_2(j,k-1)$ respectively. Let $r$ witness $R_2(n-1,p,q)$. Take any $c$-colouring $f$ of $[\{0..r\}]^n$. Then by choice of $r$ let $S \wi \{1..r\}$ such that, letting $T = \{ \{0\} \cup t : t \in [S]^{n-1} \}$, either $\#(S) = p$ and all $n$-sets in $T$ are black under $f$, or $\#(S) = q$ and all $n$-sets in $T$ are white under $f$. By symmetry we can assume that the first case holds. By choice of $p$ let $U \wi S$ such that, either $\#(U) = j-1$ and all $n$-sets in $[U]^n$ are black under $f$, or $\#(U) = k$ and all $n$-sets in $[U]^n$ are white under $f$. In the latter case we are done. In the former case $\#(\{0\} \cup U) = j$ and all $n$-sets in $[\{0\} \cup U]^n$ are black under $f$, and hence we are also done.
It should be not too hard to see that the uniform translation of the above proof gives a proof over PA of the equivalent sentence to FRT.
Finally there is one way you can 'talk' about (quite) arbitrary sets of natural numbers in PA, simply by talking about the Godel encodings of $1$-parameter sentences over PA (where $φ$ is interpreted as $S_φ = \{ x : x \in \nn \land \nn \vDash φ(x) \}$ and "$x \in S_φ$" is translated as "$\text{Prov}_\text{PA}(φ(x))$"). However, I think that PA is unable to prove the infinite Ramsey theorem stated for such sets. ACA0 on the other hand has no trouble stating and proving the full infinite Ramsey theorem for $\nn$. ACA0 can also prove SFRT because it follows from the infinite Ramsey theorem by a compactness argument.