According to quora.com most SIM cards when new, will have the number printed on them. You could put the SIM into a SIM reader or a phone. In some cases, the phone number for the SIM will be stored on the SIM. Alternatively, the provider will offer a number of “USSD” codes which can be dialed from the phone/device to determine what the MSISDN (phone number) is.