You will have to contact both Sony and Microsoft to purchase a devkit from them. Once you have all of that set up on their end you contact Epic saying you have permission from Sony and Microsoft to work on their consoles.
You send the proof to Epic, and they they set you up on their end.