You can download Lightroom from here:
Adobe - Lightroom : For Macintosh : Adobe Photoshop Lightroom 5.7
You can activate it using the serial number that you already have. If you still have access to all the data on your old device then you can move all of that to the new computer:
How do I move Lightroom to a new computer? | The Lightroom Queen
Retrieving data ...