The users and their passwords are stored in the
prefix_users table (mybb_users for example). The passwords are hashed so you can't really use them outside mybb unless you decide to use the same hashing logic
md5(md5(salt).md5(password))
In the database, in the "mybb_users" (or whatever other prefix you used during install) table.