$\underline{\text{Overview}}$
The best that I can do is provide an algorithm that can routinely be converted into a computer program that takes the values of $~m, ~n, ~$ and $~k~$ as parameters. Then, you can run the program to perform any $~(m,n,k)~$ enumeration.
You want the number of non-negative integer solutions to
For $~i \in \{1,2,\cdots,m\},~$ I am construing the variable $~x_i~$ to represent the number of die throws that showed the value $~i.~$
As will be discussed in the next section, a solution will be possible if and only if:
$$n \leq k \leq (m \times n). \tag1 $$
That is, the minimum sum possible of $~n~$ die throws occurs if each number shows $~1,~$ and the maximum sum possible of $~n~$ die throws occurs if each number shows $~m.$
So, I will assume, without loss of generality that the inequalities in (1) above hold.
$\underline{\text{When is a Solution Possible ?}}$
Continuing the discussion from the end of the previous section, if $~n = k~$ or $~k = (m \times n),~$ then a solution is clearly possible.
So, what happens if $~n < k < (m \times n)~?$
Choose $~i \in \{1,2,\cdots, (m-1)\},~$ such that
$$[n \times i] \leq k < [n \times (i+1)].$$
Then, set
$$x_i = [n - (k - ni)], ~x_{i+1}
= (k - ni) \implies $$
$$x_i + x_{i+1} = n, ~~[i ~x_i] + [(i+1) ~x_{i+1}] = k.$$
Therefore, a solution will be possible if and only if the inequalities in (1) above hold.
$\underline{\text{Nested Summations Strategy}}$
Assume a range of values has been determined, so that a solution will be possible if and only if $~x_m~$ is in this range.
Then, assuming that $~x_m~$ is some arbitrary specific value in this range, assume that a corresponding range of values has been determined for $~x_{m-1},~$ based on the specific value of $~x_m.$
Continuing in this manner, for each $~i \in \{2,3,\cdots,(m-2)\},~$ assume that specific in range values have been assigned for each of $~x_{i+1}, ~x_{i+2}, ~\cdots, ~x_m.~$
Now assume that based on the values assigned to each of $~x_{i+1}, ~x_{i+2}, ~\cdots, ~x_m,~$ a specific range of values is determined for $~x_i.~$
Then, once the variables $~x_m, ~x_{m-1}, \cdots, ~x_2~$ are assigned specific values, then the variable $~x_1~$ is determined.
So, the result is an enumeration that looks like:
$$\sum_{x_m ~\text{in range}}
\left\{ ~\sum_{x_{m-1} ~\text{in range}}
\left[ ~\sum_{x_{m-2} ~\text{in range}}
\cdots
\left( ~\sum_{x_2 ~\text{in range}} ~1
~\right) \cdots ~\right] ~\right\}. \tag2 $$
So, the entire problem is reduced to determining the specific range of values allowable for $~x_m,~$ and then, for each $~i \in \{2,3,\cdots,m-1\},~$ determining the allowable range of values for $~x_i,~$ based on the assigned in range values of $~x_{i+1}, ~x_{i+2}, \cdots, x_m.$
$\underline{\text{Minimum and Maximum Allowable Values}}$
$\underline{\text{for} ~x_i ~: ~i \in \{2,3,\cdots,m\}}$
A specific value for $~x_m~$ will be allowable if and only if there exists at least one solution to
Based on the previous analysis, which verified the inequalities in (1) above, a solution will exist if and only if
$$(n - x_m) \leq [k - (m \times x_m)] \leq [(m-1) \times (n - x_m) \iff $$
$$k - [(m-1)n] \leq x_m \leq
\left\lfloor \frac{k - n}{m-1}\right\rfloor. \tag3 $$
Note
If $~k < [(m-1)n],~$ then the lower bound for $~x_m~$ is $~0.$
Similarly, for $~i \in \{2,3,\cdots,m-1\},~$ assume that specific in range values have been assigned to the variables $~x_{i+1}, ~x_{i+2}, \cdots, x_{m-1}, ~x_m.$
Let
$$S = [ ~n - (x_m + x_{m-1} + \cdots + x_{i+1}) ~],$$
and let
$$T = k - \{ ~[m \times x_m] \\+ [(m-1) \times x_{m-1}] + \cdots +
[(i+1) \times x_{i+1}] ~\}.$$
Then, a specific value for $~x_i~$ will be allowable if and only if there exists at least one solution to
From the previous analysis in this section, that led to the result in (3) above, the allowable range for $~x_i~$ is
$$T - [(i-1)S] \leq x_i \leq
\left\lfloor \frac{T - S}{i-1}\right\rfloor. \tag4 $$
Note
If $~T < [(i-1)S],~$ then the lower bound for $~x_i~$ is $~0.$