By default, Maya saves rendered images to the images directory of the current project. You can, however, change the location to save in any directory.
To set the file output location, see Set rendered images output location.
The IFF and RLA file formats can hold mask and depth channel information. For more information regarding the treatment of mask and depth channels by various file formats, see Supported file formats.