If you have previously logged on the PC with your Yahoo ID, go to My Computer > C > Program Files > Yahoo > Profiles. All the profiles will be stored as folder names. You can check the profile name on that location.
To reset the password, use the I can't access my account? feature from the Yahoo Mail login interface.