If it has actually been foreclosed, you will need to deal with whoever got it in the foreclosure auction. It could be the lender, or it might be an investor who plans to either sell it or rent it.
And Homa is correct that often lenders will pay you ("Cash for Keys") to leave nicely. They don't want to have to spend a lot of money on an eviction, or have you be mad and do damage to the property.
Good luck -
Even if the house goes through foreclosure and the bank take ownership, the bank generally will negotiate with you and should give you reasonable time to move out. Also there is "key for cash" that they may even pay you for your trouble and expense of moving out.
Find out who is the bank. I recomment start searching for another rental property. But do not worry too much. Bank should give 30 to 60 days to move out and pay for some of your expenses.
Prudential California Realty