Lightning component quick action - send parameters to the lightning component
I don't think you can do it. If you want to use the same component on 2 different buttons, you'll need to create 2 separates wrapper components, one for each button. You'll be able to use your initial component with different attributes this way. Not exactly what you wanted but I don't see any other way for now.