I want to deploy certain software if only that specific software is not found in the machine or specific hardware configuration is available. How should I do that?

You can do this by defining baseline compliant rules profile on inventory data using different conditions with AND/OR operators using Compliance Baseline Rules and selecting this profile as criteria while configuring any automation task using How to create an Automation Task