When I connect a non-Betterment account, does Betterment store my username and password?

No. Betterment does not store your credentials. Our trusted partner for account aggregation protects the credentials using bank-level encryption both when transmitted and when stored.