The wind speeds, dust content, and mass-loss rates of evolved AGB and RSG stars at varying metallicity