Use HomePod as a microphone for a audio recording?
Unfortunately no. There exist no official way of recording audio from the HomePod into for example Voice Memo or other "generic" apps.

You could use a call recording service or voice mail system to record audio from the HomePod by dialing into that system. It would be impractical and the quality wouldn't be great, so it is probably not a realistic option for you.