Function to get screen Width and height relative to depth

I was just wondering if there was any way to get the width and the height of the screen at different depths as the lower the z co-ordinate the increased width needed to get from one side of the screen to the other.

Thanks

J