Is there a way to calculate the XMIN, YMIN, XMAX and YMAX of a polygon and write it to a field in an attribute table?  

The Geometry functions available in the Field Calculator are for points.

I am using 1.8.0 for Windows.