Yes - Xero has a "Reference" field that can be used for this, this can be edited from inside the App or set to use properties in your HubSpot deal. For Purchase Orders, most businesses either use Xero's reference field, or type the PO Number on the line item.
On QuickBooks, we have full support for custom fields, including auto-filling them with data from your HubSpot deal.