Welcome to iMore.
Open the Wallet app and tap on the card you want to see the device number of. In the bottom right corner of the screen you will see an i inside a circle. Tap on it and it will open a new screen and you will be given the last four digits of the Device Number.