Who's firmware? The ST-LINK isn't running on the TARGET, but a separate F103. You'd have to push the serial number from the HOST to the TARGET for it to have any idea what it is.
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..