State Attorney General Eric Schneiderman is investigating whether lenders illegally foreclosed on the homes of active-duty members of the military.