FiJi, a distribution of ImageJ with a lot of useful plug-ins comes with the ability of reading microscope files, including leica ".lif" files (find the link below).
Othherwise, the LOCI bioformats is a java library that can be used in multiple applications including image analysis software, numerical processing software (e.g. Matlab) and others.