Most naturally (and most commonly as well), "two kingdoms" would be 「ふたつの王国{おうこく}」.
After the actual names of the two kingdoms have been mentioned, however, you can safely use 「両王国{りょうおうこく}」. It would be highly unnatural and awkward to keep repeating 「ふたつの王国」.
(You cannot use 「両 + Noun」 before both have been identified. You can use 「ふたつの王国」 anytime.)