The County will have the answer, as some of the other agents have indicated already. If you find out your house IS in foreclosure, don't panic. First find out what your legal rights and obligations are as a renter. In New Jersey that information is publisehd online by our state Department of Community Affairs. Your landlord may be attempting to modify his loan, or he may have brought the mortgage up to date and is waiting for the notice of default to be cancelled. You need to know all the facts before taking action and then you need to make sure the action you take is appropriate and legal. Again, in NJ you have to continue paying the rent to the current owner until ownership changes hands, either at the short sale closing or when the bank takes the property back. And your security deposit must, by law, (again I am speaking of New Jersey) be transferred to the new owner, be it an individual owner or the bank.
Just be sure you are doing the right thing. Best of luck to you. I am sure any of these fine realtors from California will be able to assist and advise you.