This is a polite request. The structure 'Will you lend me...' is a common and polite way to ask someone to do something. 'Are you going to lend' implies a prior plan or intention, which is less likely in a spontaneous request.
2. Will you lend me a pen, please?