QuickBooks Online doesn't have a specific report about the HSN codes. However, I have a workaround to share so let me help you.
We can pull up the Sales by Product/Service Detail report from the Reports tab. Then, make sure to add the HSN/SAC column by clicking the small Gear icon and check its tickbox.
Once done, click the Export button and select Export to Excel. From there, you can make necessary edits and sorting to get the data you need.
Need more references about HSN and taxes? Check these links: