Solus tutorial wiki has a section on it:
Here is the code snippet:
static FORCEINLINE void GetDisplayAdapterScreenResolutions(FScreenResolutionArray& Resolutions)
{
if (RHIGetAvailableResolutions(Resolutions, false))
{
for (const FScreenResolutionRHI& EachResolution : Resolutions)
{
UE_LOG(YourLog, Warning, TEXT("DefaultAdapter - %4d x %4d @ %d"),
EachResolution.Width, EachResolution.Height, EachResolution.RefreshRate);
}
}
else
{
UE_LOG(YourLog, Error, TEXT("Screen Resolutions could not be obtained"));
}
}