You're not going to be able to. Passwords are hashed in wordpress and SMF and cannot be retrieved.
The best thing to do is just store the password they have now and then send an email out to all people saying that to log in, they'll have to change their password. They won't be able to get in until that's done.