Measuring stellar magnetic helicity density