Scotland will face Hungary, Northern Ireland have been drawn against Croatia and Wales will take on Slovakia in the first round of Euro 2025 play-offs.
The Welsh could face the Republic of Ireland, who take on Georgia, in the second round of play-offs if both progress.
Scotland will meet Montenegro or Finland should they defeat Hungary.
Meanwhile, Albania or Norway lie in wait for Northern Ireland if they defeat Croatia.
Northern Ireland, Scotland, Wales and the Republic will all be away from home for the first legs of the play-off first round on 23 October, with the return ties scheduled for a week later.
The round two play-offs will be played on 27 November and 3 December.
Seven places are still to be decided at next year’s finals in Switzerland, with holders England, Denmark, France, Germany, Iceland, Italy, Netherlands and Spain having already qualified as winners or runners-up of their League A qualifying sections. Switzerland qualify as hosts.
Scotland and Wales won their League B groups, with Northern Ireland finishing runners-up in theirs and the Republic finishing bottom of their League A section.