You would probably want to use something like SecurityAssist or the user registration solution pack, since you would need user login for something like this to work to keep track of things like member ID and whether this is someone's first purchase or not.
At the end of the day you would store the value as a session variable and create a discount rule from the discounts tab to check that session variable value and offer the appropriate discount.