Accessing the current dynamic resolution scale as a variable?

Hi, as the title says. Is it possible to access the current dynamic resolution scale as a variable?

Thanks.