Detection of anisotropic particles in levitated optomechanics